<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>MyJSP page</title>
</head>
<body>
	MyJSP page!
	<%@ page errorPage="error.jsp" %>
	<p>Param.uname = ${ param.uname }</p>
	 
	<p>
		<%
			String name = request.getParameter("uname");
			out.print("Welcome to JSP, " + name + "!");
			
			
			String user = (String)session.getAttribute("user");
			if (user != null) {
				out.print("<br>Founded session user: "+user);
			}

			session.setAttribute("user",name);
		%>
	</p>
	<p>
		<%
			String paramValue = config.getInitParameter("index-page-title");
			out.print(paramValue);
		%>
	</p>
	<p>
		<%
			paramValue = application.getInitParameter("my-conext-param");
			out.print(paramValue);
		%>
	</p>
	<a href="MyJSP.jsp?uname=Start+Page">MyJSP page</a>
	<p>
	<%
	this.log("Example of log message");
	%>
	</p>
</body>
</html>